package com.Jano.dao;

import com.Jano.entity.Question;

import java.util.List;

/**
 * description: Question <br>
 * date: 2022/6/6 4:17 PM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 * @author zoumaoji
 */
public interface QuestionDao {
    /**
     * 创建题目
     * @param questionnaireId
     * @param content
     */
    void createQuestion(int questionnaireId,String content);


    /**
     * 根据问卷id查找其包含题目
     * @param questionnaireId
     * @return
     */
    List<Question> selectQuestionsByQuestionnaireId(int questionnaireId);

    /**
     * 找到指定的题目
     * @param questionnaireId
     * @param content
     * @return
     */
    Question selectQuestionByQuestionnaireIdAndContent(int questionnaireId,String content);
}
